﻿using ManageSystem.IRepository;
using ManageSystem.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ManageSystem.Repository
{
    public class UserRepository: BaseRepository<User>, IUserRepository
    {
        /// <summary>
        /// 根据usernam查询用户
        /// ///<param name="username"></param>
        /// </summary>
        public async Task<User> QueryUserByUserName(string username)
        {
            return await Db.Queryable<User>().FirstAsync(it => it.username == username);
        }
    }
}
